package cn.zjj.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.zjj.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Shop extends BaseDomain {
    //店名
    @Excel(name = "店铺名称",width = 15)
    private String name;
    //电话
    @Excel(name = "店铺电话",width = 20)
    private String tel;
    //创建时间
    @Excel(name = "入驻日期",width = 25,exportFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date registerTime = new Date();
    //状态
    @Excel(name = "店铺状态",width = 10)
    private Integer state=1;
    //地址
    @Excel(name = "店铺地址",width = 30)
    private String address;
    //logo
    @Excel(name = "店铺logo",width = 30)
    private String logo;
    //店长id
    @Excel(name = "店长ID",width = 15)
    private Long admin_id;
    //店长对象
    private Employee shopManager=new Employee();
    //店铺中员工对象
    private List<Employee> emp= new ArrayList<>();
}
